package com.dream.libxrec.utils;

import java.io.RandomAccessFile;

public class FileUtils {
    public static boolean writeFile(String filename,byte[] data){
        try {
            RandomAccessFile f = new RandomAccessFile(filename,"rw");
            f.write(data);
            f.close();

            return true;
        } catch (Exception e) {
            e.printStackTrace();
        }

        return false;
    }
}
